package icu.wangrui.bookstore.mapper;

import icu.wangrui.bookstore.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface UserMapper {
    //登录
    User queryUserByName(@Param("uname")String uname,@Param("upwd")String upwd);
    //注册
    Boolean userRegister(User user);

    User checkUserByName(@Param("uname")String uname);

    User checkUserByPhone(@Param("phone")String phone);

    User checkUserByEmail(@Param("email")String email);

    Boolean updateUserPasswordbyPhone(User user);

    
}
